<template>
    <view class="container">
        <hx-navbar ref="hxnb" :config="config" id="nav"></hx-navbar>
        <micro-temp ref="microTemp" :url="url"></micro-temp>
    </view>
</template>

<script>
import microTemp from "@/pages/micro/temp.vue"
import webViewUrl from "@/pages/micro/webViewUrl.js"
import storage from "@/uni-sub-base/utils/storage.js"
export default {
    components: {
        microTemp,
    },
    data() {
        return {
            config: {
                back: false,
                barPlaceholder: false,
                backgroundColor: [1, "#C4181F"],
            },
            canReturn: false,
            url: "",
            backButtonPress: 0,
        }
    },
    mounted() {
        this.url = storage.getCache("businessDomain") + webViewUrl.url.storeManager
        setTimeout((e) => {
            this.url = ""
        }, 2000)
    },
    onShow() {},
    methods: {},
    onBackPress(e) {
        var that = this
        if (e.from == "backbutton") {
            this.easyWebViewGoBack(this.$refs.microTemp.getWebView())
            // this.backButtonPress++;
            // if (this.backButtonPress > 1) {
            // 	plus.runtime.quit();
            // } else {
            // 	plus.nativeUI.toast('再按一次退出应用');
            // }
            // setTimeout(function() {
            // 	that.backButtonPress = 0;
            // }, 2000);
            return true
        }
    },
}
</script>

<style lang="scss"></style>
